package consts

import (
	"github.com/gogf/gf/v2/encoding/gjson"
)

type (
	WebsocketUniqueType = int64
)

type WebsocketWorkContext struct {
	Cmd      string      `json:"cmd"`
	Unique   int64       `json:"unique"`
	Original []byte      `json:"original"`
	Data     *gjson.Json `json:"data"` //operation parameters need do scan struct and validate
}

type WebsocketWorkRes struct {
	TraceId      string      `json:"trace_id"`
	Cmd          string      `json:"cmd"`
	Code         int         `json:"code"`
	Msg          string      `json:"msg"`
	Unique       int64       `json:"unique"`
	Data         interface{} `json:"data"` //operation parameters need do scan struct and validate
	ExecDatetime string      `json:"exec_datetime"`
}
